Skip to main content

chartType

Type

property

Summary

This property defines the type of chart to be displayed

Syntax

set the chartType of widget to { line | bar | radar | donut | foot | polar | bubble | scatter }
get the chartType of widget

Description

Use this property to define the type of chart you want to display. The chartType can be one of the following values:

  • "line": A line chart is a way of plotting data points on a line.
  • "bar": A bar chart provides a way to display data values ​​represented as vertical bars.
  • "radar": A radar chart is a way of showing multiple data points and the variation between them.
  • "donut" and "Pie": Pie and donut charts are probably the most commonly used charts. They are divided into segments; the arc of each segment shows the proportional value of each data.
  • "polar": Polar area charts are similar to pie charts, but each segment has the same angle; the radius of the segment differs depending on the value.
  • "bubble": A bubble chart is used to display three dimensions of data at the same time. The location of the bubble is determined by the first two dimensions and the corresponding horizontal and vertical axes. The third dimension is represented by the size of the individual bubbles.
  • "scatter": Scatter charts are based on basic line charts with the x-axis shifted to a linear axis. To use a scatter chart, the data must be passed as objects that contain X and Y properties.

Examples

set the chartType of widget "Chart View" to "line"

Compatibility and Support

OS

mac

windows

linux

ios

android

web